
<!doctype html>
<html lang="zh" class="no-js">
  <head>
    
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width,initial-scale=1">
      
      
      
      
        <link rel="prev" href="../AT_Firmware_and_SAL_Firmware_User_Guide/">
      
      
        <link rel="next" href="../../ElfLoader_Guide/ElfLoader_Quick_Start/">
      
      <link rel="icon" href="../../../assets/favicon.png">
      <meta name="generator" content="mkdocs-1.4.3, mkdocs-material-9.1.19">
    
    
      
        <title>基于AT框架和定制模组如何对接腾讯云IoT Explorer平台 - TobudOS Documentation</title>
      
    
    
      <link rel="stylesheet" href="../../../assets/stylesheets/main.eebd395e.min.css">
      
        
        <link rel="stylesheet" href="../../../assets/stylesheets/palette.ecc896b0.min.css">
      
      

    
    
    
      
        
        
        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
        <style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style>
      
    
    
    <script>__md_scope=new URL("../../..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
    
      

    
    
    
  </head>
  
  
    
    
      
    
    
    
    
    <body dir="ltr" data-md-color-scheme="default" data-md-color-primary="indigo" data-md-color-accent="indigo">
  
    
    
      <script>var palette=__md_get("__palette");if(palette&&"object"==typeof palette.color)for(var key of Object.keys(palette.color))document.body.setAttribute("data-md-color-"+key,palette.color[key])</script>
    
    <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
    <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
    <label class="md-overlay" for="__drawer"></label>
    <div data-md-component="skip">
      
        
        <a href="#1-esp8266" class="md-skip">
          跳转至
        </a>
      
    </div>
    <div data-md-component="announce">
      
    </div>
    
    
      

<header class="md-header" data-md-component="header">
  <nav class="md-header__inner md-grid" aria-label="页眉">
    <a href="../../" title="TobudOS Documentation" class="md-header__button md-logo" aria-label="TobudOS Documentation" data-md-component="logo">
      
  <img src="../../../assets/logo.png" alt="logo">

    </a>
    <label class="md-header__button md-icon" for="__drawer">
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2Z"/></svg>
    </label>
    <div class="md-header__title" data-md-component="header-title">
      <div class="md-header__ellipsis">
        <div class="md-header__topic">
          <span class="md-ellipsis">
            TobudOS Documentation
          </span>
        </div>
        <div class="md-header__topic" data-md-component="header-topic">
          <span class="md-ellipsis">
            
              基于AT框架和定制模组如何对接腾讯云IoT Explorer平台
            
          </span>
        </div>
      </div>
    </div>
    
      
        <form class="md-header__option" data-md-component="palette">
          
            
            
            
            <input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="indigo" data-md-color-accent="indigo"  aria-label="Switch to dark mode"  type="radio" name="__palette" id="__palette_1">
            
              <label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_2" hidden>
                <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a4 4 0 0 0-4 4 4 4 0 0 0 4 4 4 4 0 0 0 4-4 4 4 0 0 0-4-4m0 10a6 6 0 0 1-6-6 6 6 0 0 1 6-6 6 6 0 0 1 6 6 6 6 0 0 1-6 6m8-9.31V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69Z"/></svg>
              </label>
            
          
            
            
            
            <input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="indigo" data-md-color-accent="indigo"  aria-label="Switch to light mode"  type="radio" name="__palette" id="__palette_2">
            
              <label class="md-header__button md-icon" title="Switch to light mode" for="__palette_1" hidden>
                <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12c0-2.42-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6a6 6 0 0 1 6 6 6 6 0 0 1-6 6m8-9.31V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69Z"/></svg>
              </label>
            
          
        </form>
      
    
    
      <div class="md-header__option">
        <div class="md-select">
          
          <button class="md-header__button md-icon" aria-label="选择当前语言">
            <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m12.87 15.07-2.54-2.51.03-.03A17.52 17.52 0 0 0 14.07 6H17V4h-7V2H8v2H1v2h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04M18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12m-2.62 7 1.62-4.33L19.12 17h-3.24Z"/></svg>
          </button>
          <div class="md-select__inner">
            <ul class="md-select__list">
              
                <li class="md-select__item">
                  <a href="../../../AT_Framwork_Guide/How_To_Use_Esp8266_Tencent_Firmware_Connect_Iot_Explorer/" hreflang="zh" class="md-select__link">
                    中文
                  </a>
                </li>
              
                <li class="md-select__item">
                  <a href="../../../en/AT_Framwork_Guide/How_To_Use_Esp8266_Tencent_Firmware_Connect_Iot_Explorer/" hreflang="en" class="md-select__link">
                    English
                  </a>
                </li>
              
            </ul>
          </div>
        </div>
      </div>
    
    
      <label class="md-header__button md-icon" for="__search">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
      </label>
      <div class="md-search" data-md-component="search" role="dialog">
  <label class="md-search__overlay" for="__search"></label>
  <div class="md-search__inner" role="search">
    <form class="md-search__form" name="search">
      <input type="text" class="md-search__input" name="query" aria-label="搜索" placeholder="搜索" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
      <label class="md-search__icon md-icon" for="__search">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
      </label>
      <nav class="md-search__options" aria-label="查找">
        
          <a href="javascript:void(0)" class="md-search__icon md-icon" title="分享" aria-label="分享" data-clipboard data-clipboard-text="" data-md-component="search-share" tabindex="-1">
            <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7 0-.24-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9a3 3 0 0 0-3 3 3 3 0 0 0 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.15c-.05.21-.08.43-.08.66 0 1.61 1.31 2.91 2.92 2.91 1.61 0 2.92-1.3 2.92-2.91A2.92 2.92 0 0 0 18 16.08Z"/></svg>
          </a>
        
        <button type="reset" class="md-search__icon md-icon" title="清空当前内容" aria-label="清空当前内容" tabindex="-1">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>
        </button>
      </nav>
      
        <div class="md-search__suggest" data-md-component="search-suggest"></div>
      
    </form>
    <div class="md-search__output">
      <div class="md-search__scrollwrap" data-md-scrollfix>
        <div class="md-search-result" data-md-component="search-result">
          <div class="md-search-result__meta">
            正在初始化搜索引擎
          </div>
          <ol class="md-search-result__list" role="presentation"></ol>
        </div>
      </div>
    </div>
  </div>
</div>
    
    
      <div class="md-header__source">
        <a href="https://atomgit.com/tobudos/Document" title="前往仓库" class="md-source" data-md-component="source">
  <div class="md-source__icon md-icon">
    
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><!--! Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg>
  </div>
  <div class="md-source__repository">
    Atomgit
  </div>
</a>
      </div>
    
  </nav>
  
</header>
    
    <div class="md-container" data-md-component="container">
      
      
        
          
            
<nav class="md-tabs" aria-label="标签" data-md-component="tabs">
  <div class="md-grid">
    <ul class="md-tabs__list">
      
        
  
  


  <li class="md-tabs__item">
    <a href="../../" class="md-tabs__link">
      首页
    </a>
  </li>

      
        
  
  


  <li class="md-tabs__item">
    <a href="../../Introduction/TobudOS_Brief_Introduction/" class="md-tabs__link">
      项目特性简介
    </a>
  </li>

      
        
  
  


  
  
  
    <li class="md-tabs__item">
      <a href="../../Kernel_Porting/Porting_Manual_for_KEIL/" class="md-tabs__link">
        内核移植指南
      </a>
    </li>
  

      
        
  
  


  
  
  
    <li class="md-tabs__item">
      <a href="../../DevelopGuide/Development_Manual/" class="md-tabs__link">
        内核开发指南
      </a>
    </li>
  

      
        
  
  
    
  


  
  
  
    <li class="md-tabs__item">
      <a href="../AT_Firmware_and_SAL_Firmware_User_Guide/" class="md-tabs__link md-tabs__link--active">
        AT模组框架
      </a>
    </li>
  

      
        
  
  


  <li class="md-tabs__item">
    <a href="../../ElfLoader_Guide/ElfLoader_Quick_Start/" class="md-tabs__link">
      ElfLoader动态加载
    </a>
  </li>

      
        
  
  


  
  
  
    <li class="md-tabs__item">
      <a href="../../OTA_Guide/OTA_Quick_Start_based_EVB_MX_Plus/" class="md-tabs__link">
        固件升级
      </a>
    </li>
  

      
        
  
  


  <li class="md-tabs__item">
    <a href="../../MicroPython_Guide/BearPi_MicroPython_QuickStart/" class="md-tabs__link">
      MicroPython开发指南
    </a>
  </li>

      
        
  
  


  <li class="md-tabs__item">
    <a href="../../VFS_Guide/vfs/" class="md-tabs__link">
      文件系统
    </a>
  </li>

      
        
  
  


  <li class="md-tabs__item">
    <a href="../../GUI_Guide/gui/" class="md-tabs__link">
      GUI开发
    </a>
  </li>

      
        
  
  


  
  
  
    <li class="md-tabs__item">
      <a href="../../DevelopKit/1.EVB_MX_Plus_Quick_Start/" class="md-tabs__link">
        官方开发套件
      </a>
    </li>
  

      
    </ul>
  </div>
</nav>
          
        
      
      <main class="md-main" data-md-component="main">
        <div class="md-main__inner md-grid">
          
            
              
              <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
                <div class="md-sidebar__scrollwrap">
                  <div class="md-sidebar__inner">
                    

  


<nav class="md-nav md-nav--primary md-nav--lifted" aria-label="导航栏" data-md-level="0">
  <label class="md-nav__title" for="__drawer">
    <a href="../../" title="TobudOS Documentation" class="md-nav__button md-logo" aria-label="TobudOS Documentation" data-md-component="logo">
      
  <img src="../../../assets/logo.png" alt="logo">

    </a>
    TobudOS Documentation
  </label>
  
    <div class="md-nav__source">
      <a href="https://atomgit.com/tobudos/Document" title="前往仓库" class="md-source" data-md-component="source">
  <div class="md-source__icon md-icon">
    
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><!--! Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg>
  </div>
  <div class="md-source__repository">
    Atomgit
  </div>
</a>
    </div>
  
  <ul class="md-nav__list" data-md-scrollfix>
    
      
      
      

  
  
  
    <li class="md-nav__item">
      <a href="../../" class="md-nav__link">
        首页
      </a>
    </li>
  

    
      
      
      

  
  
  
    <li class="md-nav__item">
      <a href="../../Introduction/TobudOS_Brief_Introduction/" class="md-nav__link">
        项目特性简介
      </a>
    </li>
  

    
      
      
      

  
  
  
    
    <li class="md-nav__item md-nav__item--nested">
      
      
      
      
      <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3" >
      
      
        
          
        
          
        
          
        
      
      
        <label class="md-nav__link" for="__nav_3" id="__nav_3_label" tabindex="0">
          内核移植指南
          <span class="md-nav__icon md-icon"></span>
        </label>
      
      <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_3_label" aria-expanded="false">
        <label class="md-nav__title" for="__nav_3">
          <span class="md-nav__icon md-icon"></span>
          内核移植指南
        </label>
        <ul class="md-nav__list" data-md-scrollfix>
          
            
              
  
  
  
    <li class="md-nav__item">
      <a href="../../Kernel_Porting/Porting_Manual_for_KEIL/" class="md-nav__link">
        基于Keil移植TobudOS内核
      </a>
    </li>
  

            
          
            
              
  
  
  
    <li class="md-nav__item">
      <a href="../../Kernel_Porting/Porting_Manual_for_IAR/" class="md-nav__link">
        基于IAR 移植TobudOS内核
      </a>
    </li>
  

            
          
            
              
  
  
  
    <li class="md-nav__item">
      <a href="../../Kernel_Porting/Porting_Manual_for_GCC/" class="md-nav__link">
        基于GCC 移植TobudOS内核
      </a>
    </li>
  

            
          
        </ul>
      </nav>
    </li>
  

    
      
      
      

  
  
  
    
    <li class="md-nav__item md-nav__item--nested">
      
      
      
      
      <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_4" >
      
      
        
          
        
          
        
          
        
      
      
        <label class="md-nav__link" for="__nav_4" id="__nav_4_label" tabindex="0">
          内核开发指南
          <span class="md-nav__icon md-icon"></span>
        </label>
      
      <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_4_label" aria-expanded="false">
        <label class="md-nav__title" for="__nav_4">
          <span class="md-nav__icon md-icon"></span>
          内核开发指南
        </label>
        <ul class="md-nav__list" data-md-scrollfix>
          
            
              
  
  
  
    <li class="md-nav__item">
      <a href="../../DevelopGuide/Development_Manual/" class="md-nav__link">
        TobudOS内核开发指南
      </a>
    </li>
  

            
          
            
              
  
  
  
    <li class="md-nav__item">
      <a href="../../DevelopGuide/API_Reference/" class="md-nav__link">
        TobudOS内核API参考手册
      </a>
    </li>
  

            
          
            
              
  
  
  
    <li class="md-nav__item">
      <a href="../../DevelopGuide/CMSIS_RTOS_API_Use_Guide/" class="md-nav__link">
        TobudOS内核CMSIS适配API指南
      </a>
    </li>
  

            
          
        </ul>
      </nav>
    </li>
  

    
      
      
      

  
  
    
  
  
    
    <li class="md-nav__item md-nav__item--active md-nav__item--nested">
      
      
      
      
      <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5" checked>
      
      
        
          
        
          
        
      
      
        <label class="md-nav__link" for="__nav_5" id="__nav_5_label" tabindex="0">
          AT模组框架
          <span class="md-nav__icon md-icon"></span>
        </label>
      
      <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_5_label" aria-expanded="true">
        <label class="md-nav__title" for="__nav_5">
          <span class="md-nav__icon md-icon"></span>
          AT模组框架
        </label>
        <ul class="md-nav__list" data-md-scrollfix>
          
            
              
  
  
  
    <li class="md-nav__item">
      <a href="../AT_Firmware_and_SAL_Firmware_User_Guide/" class="md-nav__link">
        无线通信模组AT框架开发指南
      </a>
    </li>
  

            
          
            
              
  
  
    
  
  
    <li class="md-nav__item md-nav__item--active">
      
      <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
      
      
        
      
      
      <a href="./" class="md-nav__link md-nav__link--active">
        基于AT框架和定制模组如何对接腾讯云IoT Explorer平台
      </a>
      
    </li>
  

            
          
        </ul>
      </nav>
    </li>
  

    
      
      
      

  
  
  
    <li class="md-nav__item">
      <a href="../../ElfLoader_Guide/ElfLoader_Quick_Start/" class="md-nav__link">
        ElfLoader动态加载
      </a>
    </li>
  

    
      
      
      

  
  
  
    
    <li class="md-nav__item md-nav__item--nested">
      
      
      
      
      <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_7" >
      
      
        
          
        
          
        
      
      
        <label class="md-nav__link" for="__nav_7" id="__nav_7_label" tabindex="0">
          固件升级
          <span class="md-nav__icon md-icon"></span>
        </label>
      
      <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_7_label" aria-expanded="false">
        <label class="md-nav__title" for="__nav_7">
          <span class="md-nav__icon md-icon"></span>
          固件升级
        </label>
        <ul class="md-nav__list" data-md-scrollfix>
          
            
              
  
  
  
    <li class="md-nav__item">
      <a href="../../OTA_Guide/OTA_Quick_Start_based_EVB_MX_Plus/" class="md-nav__link">
        基于EVB_MX的固件升级指南
      </a>
    </li>
  

            
          
            
              
  
  
  
    <li class="md-nav__item">
      <a href="../../OTA_Guide/In_Application_Programming_based_EVB_MX_Plus/" class="md-nav__link">
        基于EVB_MX的IAP开发指南
      </a>
    </li>
  

            
          
        </ul>
      </nav>
    </li>
  

    
      
      
      

  
  
  
    <li class="md-nav__item">
      <a href="../../MicroPython_Guide/BearPi_MicroPython_QuickStart/" class="md-nav__link">
        MicroPython开发指南
      </a>
    </li>
  

    
      
      
      

  
  
  
    <li class="md-nav__item">
      <a href="../../VFS_Guide/vfs/" class="md-nav__link">
        文件系统
      </a>
    </li>
  

    
      
      
      

  
  
  
    <li class="md-nav__item">
      <a href="../../GUI_Guide/gui/" class="md-nav__link">
        GUI开发
      </a>
    </li>
  

    
      
      
      

  
  
  
    
    <li class="md-nav__item md-nav__item--nested">
      
      
      
      
      <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_11" >
      
      
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
      
      
        <label class="md-nav__link" for="__nav_11" id="__nav_11_label" tabindex="0">
          官方开发套件
          <span class="md-nav__icon md-icon"></span>
        </label>
      
      <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_11_label" aria-expanded="false">
        <label class="md-nav__title" for="__nav_11">
          <span class="md-nav__icon md-icon"></span>
          官方开发套件
        </label>
        <ul class="md-nav__list" data-md-scrollfix>
          
            
              
  
  
  
    <li class="md-nav__item">
      <a href="../../DevelopKit/1.EVB_MX_Plus_Quick_Start/" class="md-nav__link">
        EVB_MX+（STM32L4）快速上手
      </a>
    </li>
  

            
          
            
              
  
  
  
    <li class="md-nav__item">
      <a href="../../DevelopKit/2.EVB_LX_RISC-V_Quick_Start/" class="md-nav__link">
        EVB_LX（GD32V RISC-V）快速上手
      </a>
    </li>
  

            
          
            
              
  
  
  
    <li class="md-nav__item">
      <a href="../../DevelopKit/3.EVB_WL_Quick_Start/" class="md-nav__link">
        EVB_WL（STM32WL）快速上手
      </a>
    </li>
  

            
          
            
              
  
  
  
    <li class="md-nav__item">
      <a href="../../DevelopKit/4.EVB_G0_QuickStart/" class="md-nav__link">
        EVB_G0（STM32G0）快速上手
      </a>
    </li>
  

            
          
            
              
  
  
  
    <li class="md-nav__item">
      <a href="../../DevelopKit/5.EVB_AIoT_NXP_QuickStart/" class="md-nav__link">
        EVB_AIoT_NXP（RT1062）快速上手
      </a>
    </li>
  

            
          
            
              
  
  
  
    <li class="md-nav__item">
      <a href="../../DevelopKit/6.EVB_CH32V_QuickStart/" class="md-nav__link">
        EVB_CH32V（CH32V307）快速上手
      </a>
    </li>
  

            
          
            
              
  
  
  
    <li class="md-nav__item">
      <a href="../../DevelopKit/7.EVB_AIoT_STM32_QuickStart/" class="md-nav__link">
        EVB_AIoT_STM32（STM32H7）快速上手
      </a>
    </li>
  

            
          
        </ul>
      </nav>
    </li>
  

    
  </ul>
</nav>
                  </div>
                </div>
              </div>
            
            
              
              <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
                <div class="md-sidebar__scrollwrap">
                  <div class="md-sidebar__inner">
                    

<nav class="md-nav md-nav--secondary" aria-label="目录">
  
  
  
    
  
  
</nav>
                  </div>
                </div>
              </div>
            
          
          
            <div class="md-content" data-md-component="content">
              <article class="md-content__inner md-typeset">
                
                  

  
    <a href="https://atomgit.com/tobudos/Document/edit/master/docs/AT_Framwork_Guide/How_To_Use_Esp8266_Tencent_Firmware_Connect_Iot_Explorer.md" title="编辑此页" class="md-content__button md-icon">
      
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83 3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75L3 17.25Z"/></svg>
    </a>
  
  
    
      
    
    <a href="https://atomgit.com/tobudos/Document/raw/master/docs/AT_Framwork_Guide/How_To_Use_Esp8266_Tencent_Firmware_Connect_Iot_Explorer.md" title="查看本页的源代码" class="md-content__button md-icon">
      
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 9a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3m0 8a5 5 0 0 1-5-5 5 5 0 0 1 5-5 5 5 0 0 1 5 5 5 5 0 0 1-5 5m0-12.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5Z"/></svg>
    </a>
  


<h1 id="1-esp8266">1. 腾讯云 ESP8266 定制固件说明及烧录</h1>
<p>腾讯云 IoT AT 指令是一套针对使用通讯模组（2G/4G/NB/WIFI）接入腾讯云物联平台的定制 AT 指令集，如果通讯模组实现了该指令集，则设备接入和通讯更为简单，所需代码量更少。ESP8266 作为 IoT 领域使用最广泛的一款 WiFi 芯片/模组，我们在其通用 AT 指令基础上，增加了腾讯云 IoT AT 指令集，形成一个定制的模组固件 QCloud_IoT_AT_ESP8266，腾讯云 IoT 定制的 AT 模组固件 QCloud_IoT_AT_ESP8266，适用于所有 FLASH 大小为 2MB 或者 2MB 以上的 ESP8266 模组。</p>
<p>固件烧录方法请阅读文档：<a href="https://github.com/TencentCloud/tc-iot-sdk-embedded-for-esp8266">腾讯云 IoT AT ESP8266 定制固件及说明</a>。</p>
<h1 id="2">2. 云端配置</h1>
<p>登录<a href="https://cloud.tencent.com/product/iotexplorer">腾讯云物联网开发平台（IoT Explorer）</a>,点击“立即使用”进入控制台。</p>
<h2 id="21">2.1. 新建项目</h2>
<p>项目是为了用户面对不同的产品迭代或不同的项目角色而设计的一种隔离机制，便于用户清晰管理物联网项目，并能灵活地配置项目权限。</p>
<ul>
<li>项目下可以建立多个产品与应用，应用默认有权限访问该项目下的<strong>所有产品</strong>；</li>
<li>每个项目会有自己的唯一 ID，数据会根据项目进行隔离，以确保数据安全；</li>
<li>项目删除后，该项目所属产品等数据都将被删除且不能恢复；</li>
<li>开发平台提供资源级的权限控制，可为不同的子用户分配项目级、产品级的权限控制；</li>
</ul>
<p>点击新建项目，填写项目名称和简介：</p>
<p><img alt="" src="https://img-blog.csdnimg.cn/20200627154409418.png" /></p>
<h2 id="22">2.2. 产品开发</h2>
<h3 id="221">2.2.1. 新建产品</h3>
<p>点击项目名称进入到该项目中，点击新建产品：</p>
<p><img alt="" src="https://img-blog.csdnimg.cn/20200628101519667.png" /></p>
<p>填写产品的一些信息：</p>
<ul>
<li>产品名称：名称为中文、字母、数字、下划线的组合，1 - 20 位且不能为空。</li>
<li>产品品类：选择您所创建产品的所属品类，不同类型产品的属性、事件等数据模板会有所不同。详情请参见 数据模板。</li>
<li>设备类型：设备使用 2G/3G/4G/Wi-Fi 无线通信或有线通信方式，网关可提供云端通信能力，帮助设备与平台通信。</li>
<li>认证方式：物联网开发平台提供两种认证方式用于设备与平台之间鉴权认证。</li>
<li>证书认证：在创建设备时，平台将为设备生成一个证书文件和一个私钥文件，实现设备与云之间的双向认证。</li>
<li>密钥认证：在创建设备时，使用平台为设备随机生成的 PSK。</li>
<li>通信方式：您可以选择 Wi-Fi、移动蜂窝（2G/3G/4G）和其他通信方式。</li>
<li>数据协议：默认采用数据模板的数据协议，您也可以自定义协议进行透传。</li>
<li>描述：字数不能超过 80 个，您可以根据需要选填。</li>
</ul>
<p><img alt="" src="https://img-blog.csdnimg.cn/20200627154515852.png" /></p>
<p>产品新建成功后，可在产品列表页查看到“智能灯”。</p>
<p><img alt="" src="https://img-blog.csdnimg.cn/20200627154541318.png" /></p>
<h3 id="222">2.2.2. 数据模板</h3>
<p>数据模板是将物理实体设备进行数字化描述，构建其数字模型。在物联网开发平台定义数据模板即定义产品功能。完成功能定义后，系统将自动生成该产品的数据模板。</p>
<p>进入产品，点击新建功能。</p>
<p>填写功能信息。</p>
<p>功能类型包含三元素：</p>
<ul>
<li>属性：包括布尔型、整数型、字符型、浮点型、枚举型和时间型等 6 种基本数据类型；</li>
<li>事件：包括告警、故障和信息三种类型，事件型功能属性可以添加具体的事件参数，这些参数可以由属性中 6 种基本数据类型组成；</li>
<li>行为：用于实现更复杂的业务逻辑，可包含输入参数和输出参数，可用于让设备执行某项特定的任务。行为的输入参数和输出参数可添加上述 6 种属性的基本数据类型。</li>
</ul>
<table>
<thead>
<tr>
<th align="center">功能元素</th>
<th>功能描述</th>
<th align="center">功能标识符</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">属性</td>
<td>用于描述设备的实时状态，支持读取和设置，如模式、亮度、开关等。</td>
<td align="center">PropertiesId</td>
</tr>
<tr>
<td align="center">事件</td>
<td>用于描述设备运行时的事件，包括告警、信息和故障等三种事件类型，可添加多个输出参数，如环境传感器检测到空气质量很差，空调异常告警等。</td>
<td align="center">EventId</td>
</tr>
<tr>
<td align="center">行为</td>
<td>用于描述复杂的业务逻辑，可添加多个调用参数和返回参数，用于让设备执行某项定特定的任务，例如，开锁动作需要知道是哪个用户在什么时间开锁，锁的状态如何等。</td>
<td align="center">ActionId</td>
</tr>
</tbody>
</table>
<p>数据类型支持 6 种：</p>
<ul>
<li>布尔型：非真即假的二值型变量。例如，开关功能。</li>
<li>整数型：可用于线性调节的整数变量。例如，空调的温度。</li>
<li>字符型：以字符串形式表达的功能点，例如，灯的位置。</li>
<li>浮点型：精度为浮点型的功能点。例如，压力值的范围：0.0 - 24.0。</li>
<li>枚举型：自定义的有限集合值。例如，灯的颜色：白色、红色、黄色等。</li>
<li>时间型：string 类型的 UTC 时间戳（毫秒）。</li>
</ul>
<p>选择“智能灯”类型后，系统会自动生成标准功能：</p>
<p><img alt="" src="https://img-blog.csdnimg.cn/20200627154724560.png" /></p>
<p>数据模板是一个 JSON 格式的文件，使用数据模板协议，用户的设备需按数据模板定义要求传输设备数据到云端，并可使用基于数据模板的诸多业务功能，点击查看 json 可以看到上面创建功能的 json 格式：</p>
<div class="highlight"><pre><span></span><code><span class="p">{</span>
<span class="w">  </span><span class="nt">&quot;version&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;1.0&quot;</span><span class="p">,</span>
<span class="w">  </span><span class="nt">&quot;properties&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">[</span>
<span class="w">    </span><span class="p">{</span>
<span class="w">      </span><span class="nt">&quot;id&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;power_switch&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;name&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;电灯开关&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;desc&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;控制电灯开灭&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;required&quot;</span><span class="p">:</span><span class="w"> </span><span class="kc">true</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;mode&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;rw&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;define&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w">        </span><span class="nt">&quot;type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;bool&quot;</span><span class="p">,</span>
<span class="w">        </span><span class="nt">&quot;mapping&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w">          </span><span class="nt">&quot;0&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;关&quot;</span><span class="p">,</span>
<span class="w">          </span><span class="nt">&quot;1&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;开&quot;</span>
<span class="w">        </span><span class="p">}</span>
<span class="w">      </span><span class="p">}</span>
<span class="w">    </span><span class="p">},</span>
<span class="w">    </span><span class="p">{</span>
<span class="w">      </span><span class="nt">&quot;id&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;color&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;name&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;颜色&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;desc&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;灯光颜色&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;mode&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;rw&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;define&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w">        </span><span class="nt">&quot;type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;enum&quot;</span><span class="p">,</span>
<span class="w">        </span><span class="nt">&quot;mapping&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w">          </span><span class="nt">&quot;0&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Red&quot;</span><span class="p">,</span>
<span class="w">          </span><span class="nt">&quot;1&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Green&quot;</span><span class="p">,</span>
<span class="w">          </span><span class="nt">&quot;2&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Blue&quot;</span>
<span class="w">        </span><span class="p">}</span>
<span class="w">      </span><span class="p">}</span>
<span class="w">    </span><span class="p">},</span>
<span class="w">    </span><span class="p">{</span>
<span class="w">      </span><span class="nt">&quot;id&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;brightness&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;name&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;亮度&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;desc&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;灯光亮度&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;mode&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;rw&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;define&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w">        </span><span class="nt">&quot;type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;int&quot;</span><span class="p">,</span>
<span class="w">        </span><span class="nt">&quot;unit&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;%&quot;</span><span class="p">,</span>
<span class="w">        </span><span class="nt">&quot;step&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;1&quot;</span><span class="p">,</span>
<span class="w">        </span><span class="nt">&quot;min&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;0&quot;</span><span class="p">,</span>
<span class="w">        </span><span class="nt">&quot;max&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;100&quot;</span><span class="p">,</span>
<span class="w">        </span><span class="nt">&quot;start&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;1&quot;</span>
<span class="w">      </span><span class="p">}</span>
<span class="w">    </span><span class="p">},</span>
<span class="w">    </span><span class="p">{</span>
<span class="w">      </span><span class="nt">&quot;id&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;name&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;name&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;灯位置名称&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;desc&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;灯位置名称：书房、客厅等&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;mode&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;rw&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;required&quot;</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;define&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w">        </span><span class="nt">&quot;type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;string&quot;</span><span class="p">,</span>
<span class="w">        </span><span class="nt">&quot;min&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;0&quot;</span><span class="p">,</span>
<span class="w">        </span><span class="nt">&quot;max&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;64&quot;</span>
<span class="w">      </span><span class="p">}</span>
<span class="w">    </span><span class="p">}</span>
<span class="w">  </span><span class="p">],</span>
<span class="w">  </span><span class="nt">&quot;events&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">[</span>
<span class="w">    </span><span class="p">{</span>
<span class="w">      </span><span class="nt">&quot;id&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;status_report&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;name&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;DeviceStatus&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;desc&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Report the device status&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;info&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;required&quot;</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;params&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">[</span>
<span class="w">        </span><span class="p">{</span>
<span class="w">          </span><span class="nt">&quot;id&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;status&quot;</span><span class="p">,</span>
<span class="w">          </span><span class="nt">&quot;name&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;running_state&quot;</span><span class="p">,</span>
<span class="w">          </span><span class="nt">&quot;desc&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Report current device running state&quot;</span><span class="p">,</span>
<span class="w">          </span><span class="nt">&quot;define&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w">            </span><span class="nt">&quot;type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;bool&quot;</span><span class="p">,</span>
<span class="w">            </span><span class="nt">&quot;mapping&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w">              </span><span class="nt">&quot;0&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;normal&quot;</span><span class="p">,</span>
<span class="w">              </span><span class="nt">&quot;1&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;fault&quot;</span>
<span class="w">            </span><span class="p">}</span>
<span class="w">          </span><span class="p">}</span>
<span class="w">        </span><span class="p">},</span>
<span class="w">        </span><span class="p">{</span>
<span class="w">          </span><span class="nt">&quot;id&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;message&quot;</span><span class="p">,</span>
<span class="w">          </span><span class="nt">&quot;name&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Message&quot;</span><span class="p">,</span>
<span class="w">          </span><span class="nt">&quot;desc&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Some extra message&quot;</span><span class="p">,</span>
<span class="w">          </span><span class="nt">&quot;define&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w">            </span><span class="nt">&quot;type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;string&quot;</span><span class="p">,</span>
<span class="w">            </span><span class="nt">&quot;min&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;0&quot;</span><span class="p">,</span>
<span class="w">            </span><span class="nt">&quot;max&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;64&quot;</span>
<span class="w">          </span><span class="p">}</span>
<span class="w">        </span><span class="p">}</span>
<span class="w">      </span><span class="p">]</span>
<span class="w">    </span><span class="p">},</span>
<span class="w">    </span><span class="p">{</span>
<span class="w">      </span><span class="nt">&quot;id&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;low_voltage&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;name&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;LowVoltage&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;desc&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Alert for device voltage is low&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;alert&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;required&quot;</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;params&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">[</span>
<span class="w">        </span><span class="p">{</span>
<span class="w">          </span><span class="nt">&quot;id&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;voltage&quot;</span><span class="p">,</span>
<span class="w">          </span><span class="nt">&quot;name&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Voltage&quot;</span><span class="p">,</span>
<span class="w">          </span><span class="nt">&quot;desc&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Current voltage&quot;</span><span class="p">,</span>
<span class="w">          </span><span class="nt">&quot;define&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w">            </span><span class="nt">&quot;type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;float&quot;</span><span class="p">,</span>
<span class="w">            </span><span class="nt">&quot;unit&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;V&quot;</span><span class="p">,</span>
<span class="w">            </span><span class="nt">&quot;step&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;1&quot;</span><span class="p">,</span>
<span class="w">            </span><span class="nt">&quot;min&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;0.0&quot;</span><span class="p">,</span>
<span class="w">            </span><span class="nt">&quot;max&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;24.0&quot;</span><span class="p">,</span>
<span class="w">            </span><span class="nt">&quot;start&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;1&quot;</span>
<span class="w">          </span><span class="p">}</span>
<span class="w">        </span><span class="p">}</span>
<span class="w">      </span><span class="p">]</span>
<span class="w">    </span><span class="p">},</span>
<span class="w">    </span><span class="p">{</span>
<span class="w">      </span><span class="nt">&quot;id&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;hardware_fault&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;name&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Hardware_fault&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;desc&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Report hardware fault&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;fault&quot;</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;required&quot;</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="p">,</span>
<span class="w">      </span><span class="nt">&quot;params&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">[</span>
<span class="w">        </span><span class="p">{</span>
<span class="w">          </span><span class="nt">&quot;id&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;name&quot;</span><span class="p">,</span>
<span class="w">          </span><span class="nt">&quot;name&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Name&quot;</span><span class="p">,</span>
<span class="w">          </span><span class="nt">&quot;desc&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Name like: memory,tf card, censors ...&quot;</span><span class="p">,</span>
<span class="w">          </span><span class="nt">&quot;define&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w">            </span><span class="nt">&quot;type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;string&quot;</span><span class="p">,</span>
<span class="w">            </span><span class="nt">&quot;min&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;0&quot;</span><span class="p">,</span>
<span class="w">            </span><span class="nt">&quot;max&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;64&quot;</span>
<span class="w">          </span><span class="p">}</span>
<span class="w">        </span><span class="p">},</span>
<span class="w">        </span><span class="p">{</span>
<span class="w">          </span><span class="nt">&quot;id&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;error_code&quot;</span><span class="p">,</span>
<span class="w">          </span><span class="nt">&quot;name&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Error_Code&quot;</span><span class="p">,</span>
<span class="w">          </span><span class="nt">&quot;desc&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Error code for fault&quot;</span><span class="p">,</span>
<span class="w">          </span><span class="nt">&quot;define&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w">            </span><span class="nt">&quot;type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;int&quot;</span><span class="p">,</span>
<span class="w">            </span><span class="nt">&quot;unit&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;&quot;</span><span class="p">,</span>
<span class="w">            </span><span class="nt">&quot;step&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;1&quot;</span><span class="p">,</span>
<span class="w">            </span><span class="nt">&quot;min&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;0&quot;</span><span class="p">,</span>
<span class="w">            </span><span class="nt">&quot;max&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;2000&quot;</span><span class="p">,</span>
<span class="w">            </span><span class="nt">&quot;start&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;1&quot;</span>
<span class="w">          </span><span class="p">}</span>
<span class="w">        </span><span class="p">}</span>
<span class="w">      </span><span class="p">]</span>
<span class="w">    </span><span class="p">}</span>
<span class="w">  </span><span class="p">],</span>
<span class="w">  </span><span class="nt">&quot;profile&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w">    </span><span class="nt">&quot;ProductId&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;FWR8PGACUS&quot;</span><span class="p">,</span>
<span class="w">    </span><span class="nt">&quot;CategoryId&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;3&quot;</span>
<span class="w">  </span><span class="p">},</span>
<span class="w">  </span><span class="nt">&quot;actions&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">[]</span>
<span class="p">}</span>
</code></pre></div>
<h3 id="23">2.3. 创建设备</h3>
<p>进入设备调试界面，新建设备：</p>
<p><img alt="" src="https://img-blog.csdnimg.cn/20200629100709275.png" /></p>
<p><img alt="" src="https://img-blog.csdnimg.cn/20200629100653304.png" /></p>
<p>进入设备之后即可看到对接信息。</p>
<h1 id="3">3. 设备端对接测试</h1>
<p>使用 USB 转串口将烧录好腾讯云定制固件的 ESP8266 连接到 PC，使用串口助手打开串口开始调试。</p>
<h2 id="31">3.1. 入网</h2>
<p>测试 AT 指令是否正常：</p>
<div class="highlight"><pre><span></span><code>AT

OK
</code></pre></div>
<p>设置 ESP8266 工作模式为 AP 和 STA 并存：</p>
<div class="highlight"><pre><span></span><code>AT+CWMODE=3

OK
</code></pre></div>
<p>设置传输模式为普通传输模式：</p>
<div class="highlight"><pre><span></span><code>AT+CIPMODE=0

OK
</code></pre></div>
<p>开启多路模式：</p>
<div class="highlight"><pre><span></span><code>AT+CIPMUX=1

OK
</code></pre></div>
<p>入网：</p>
<div class="highlight"><pre><span></span><code>AT+CWJAP=&quot;Mculover666&quot;,&quot;mculover666&quot;
WIFI CONNECTED
WIFI GOT IP

OK
</code></pre></div>
<h2 id="32">3.2. 设置腾讯云对接信息</h2>
<p>示例：</p>
<div class="highlight"><pre><span></span><code>AT+TCDEVINFOSET=1,&quot;FWR8PGACUS&quot;,&quot;ESP8266_Dev_001&quot;,&quot;0VqX0xzrvwmivBHwzuBrCQ==&quot;
OK
+TCDEVINFOSET:OK
</code></pre></div>
<p>此信息会保存到 Flash 中，可以使用下面的命令查看：</p>
<div class="highlight"><pre><span></span><code>AT+TCDEVINFOSET?
</code></pre></div>
<h2 id="33">3.3. 连接腾讯云</h2>
<p>示例：</p>
<div class="highlight"><pre><span></span><code>AT+TCMQTTCONN=1,5000,240,1,1
OK
+TCMQTTCONN:OK
</code></pre></div>
<p>连接成功，此时在腾讯云 IoT Explorer 平台即可看到设备在线：</p>
<p><img alt="" src="https://img-blog.csdnimg.cn/20200628194450693.png" /></p>
<h2 id="34">3.4. 订阅和发布主题</h2>
<p>Explorer 平台相比 IoThub 平台，支持的 topic 比较多，主要有如下功能：</p>
<ul>
<li>设备属性上报：设备端将定义的属性根据设备端的业务逻辑向云端上报。</li>
<li>设备远程控制：从云端向设备端下发控制指令，即设置设备可写属性。</li>
<li>获取设备最新上报信息：获取设备最新的上报数据。</li>
<li>设备事件上报：设备可根据定义的数据模板中的事件，当事件被触发，则根据设备事件上报的协议上报告警、故障等事件信息。</li>
<li>设备行为：云端可以通过 RPC 的方式来要求设备执行某个动作行为，适用于应用需要实时获取设备的执行结果的场景。</li>
</ul>
<h3 id="341">3.4.1. 设备属性上报</h3>
<p>设备向云端上报数据的 topic 如下：</p>
<ul>
<li>上行请求 Topic： <code>$thing/up/property/{ProductID}/{DeviceName}</code></li>
<li>上行响应 Topic： <code>$thing/down/property/{ProductID}/{DeviceName}</code></li>
</ul>
<p>这两个 topic 咋玩呢？</p>
<p><strong>首先订阅上行响应 topic：</strong></p>
<div class="highlight"><pre><span></span><code><span class="n">AT</span><span class="o">+</span><span class="n">TCMQTTSUB</span><span class="o">=</span><span class="s">&quot;$thing/down/property/FWR8PGACUS/ESP8266_Dev_001&quot;</span><span class="p">,</span><span class="mi">0</span>
</code></pre></div>
<p>返回结果如下：</p>
<div class="highlight"><pre><span></span><code>OK
+TCMQTTSUB:OK
</code></pre></div>
<p>接着向上行请求 topic 上报数据，上报数据时平台不仅规定了 topic，还规定了数据内容，如下：</p>
<div class="highlight"><pre><span></span><code><span class="p">{</span>
<span class="w">  </span><span class="nt">&quot;method&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;report&quot;</span><span class="p">,</span>
<span class="w">  </span><span class="nt">&quot;clientToken&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;clientToken-145023f5-bc9b-4174-ba3b-430ba5956e5c&quot;</span><span class="p">,</span>
<span class="w">  </span><span class="nt">&quot;params&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w">    </span><span class="nt">&quot;brightness&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">55</span><span class="p">,</span>
<span class="w">    </span><span class="nt">&quot;name&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;bedroom&quot;</span><span class="p">,</span>
<span class="w">    </span><span class="nt">&quot;power_switch&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span>
<span class="w">    </span><span class="nt">&quot;color&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span>
<span class="w">  </span><span class="p">}</span>
<span class="p">}</span>
</code></pre></div>
<p>其中每一项的意义如下;</p>
<table>
   <tr>
      <th>参数</th>
      <th>类型</th>
      <th>说明</th>
   </tr>
   <tr>
      <td>method</td>
      <td>String</td>
      <td>report 表示设备属性上报。</td>
   </tr>
   <tr>
      <td>clientToken</td>
      <td>String</td>
      <td>用于上下行消息配对标识</td>
   </tr>
   <tr>
      <td>timestamp</td>
      <td>Integer</td>
      <td>属性上报的时间</td>
   </tr>
   <tr>
      <td>params</td>
      <td>JSON</td>
      <td>JSON 结构内为设备上报的属性值</td>
   </tr>
</table>

<p>所以组合出来上报数据的 AT 指令如下：</p>
<div class="highlight"><pre><span></span><code><span class="n">AT</span><span class="o">+</span><span class="n">TCMQTTPUB</span><span class="o">=</span><span class="s">&quot;$thing/up/property/FWR8PGACUS/ESP8266_Dev_001&quot;</span><span class="p">,</span><span class="mi">0</span><span class="p">,</span><span class="s">&quot;{</span><span class="se">\&quot;</span><span class="s">method</span><span class="se">\&quot;</span><span class="s">:</span><span class="se">\&quot;</span><span class="s">report</span><span class="se">\&quot;</span><span class="s">\,</span><span class="se">\&quot;</span><span class="s">clientToken</span><span class="se">\&quot;</span><span class="s">:</span><span class="se">\&quot;</span><span class="s">clientToken-145023f5-bc9b-4174-ba3b-430ba5956e5c</span><span class="se">\&quot;</span><span class="s">\,</span><span class="se">\&quot;</span><span class="s">params</span><span class="se">\&quot;</span><span class="s">:{</span><span class="se">\&quot;</span><span class="s">brightness</span><span class="se">\&quot;</span><span class="s">:55\,</span><span class="se">\&quot;</span><span class="s">name</span><span class="se">\&quot;</span><span class="s">:</span><span class="se">\&quot;</span><span class="s">bedroom</span><span class="se">\&quot;</span><span class="s">\,</span><span class="se">\&quot;</span><span class="s">power_switch</span><span class="se">\&quot;</span><span class="s">:1\,</span><span class="se">\&quot;</span><span class="s">color</span><span class="se">\&quot;</span><span class="s">:2}}&quot;</span>
</code></pre></div>
<p>返回结果如下：</p>
<div class="highlight"><pre><span></span><code>OK
+TCMQTTPUB:OK
</code></pre></div>
<p>同时，因为订阅了上行响应 topic，所以模组会收到云端下发的响应并通过 URC 模式上报：</p>
<div class="highlight"><pre><span></span><code><span class="o">+</span><span class="n">TCMQTTRCVPUB</span><span class="o">:</span><span class="s">&quot;$thing/down/property/FWR8PGACUS/ESP8266_Dev_001&quot;</span><span class="p">,</span><span class="mi">118</span><span class="p">,</span><span class="s">&quot;{&quot;</span><span class="n">method</span><span class="s">&quot;:&quot;</span><span class="n">report_reply</span><span class="s">&quot;,&quot;</span><span class="n">clientToken</span><span class="s">&quot;:&quot;</span><span class="n">clientToken</span><span class="mi">-145023</span><span class="n">f5</span><span class="o">-</span><span class="n">bc9b</span><span class="mi">-4174</span><span class="o">-</span><span class="n">ba3b</span><span class="mi">-430</span><span class="n">ba5956e5c</span><span class="s">&quot;,&quot;</span><span class="n">code</span><span class="s">&quot;:0,&quot;</span><span class="n">status</span><span class="s">&quot;:&quot;</span><span class="n">success</span><span class="s">&quot;}&quot;</span>
</code></pre></div>
<p>云端响应报文整理一下格式如下：</p>
<div class="highlight"><pre><span></span><code><span class="p">{</span>
<span class="w">  </span><span class="nt">&quot;method&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;report_reply&quot;</span><span class="p">,</span>
<span class="w">  </span><span class="nt">&quot;clientToken&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;clientToken-145023f5-bc9b-4174-ba3b-430ba5956e5c&quot;</span><span class="p">,</span>
<span class="w">  </span><span class="nt">&quot;code&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
<span class="w">  </span><span class="nt">&quot;status&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;success&quot;</span>
<span class="p">}</span>
</code></pre></div>
<p>其中每一项也有具体的含义：</p>
<table>
   <tr>
      <th>参数</th>
      <th>类型</th>
      <th>说明</th>
   </tr>
   <tr>
      <td>method</td>
      <td>String</td>
      <td>report_reply 表示云端接收设备上报后的响应报文</td>
   </tr>
  <tr>
      <td>clientToken</td>
      <td>String</td>
      <td>用于上下行消息配对标识</td>
   </tr>
   <tr>
      <td>code</td>
      <td>Integer</td>
      <td>0 表示云端成功收到设备上报的属性</td>
   </tr>
   <tr>
      <td>status</td>
      <td>String</td>
      <td>当 code 非 0 的时候，提示错误信息</td>
   </tr>   
</table>
<p>在云端查看设备上报的数据：</p>
<p><img alt="" src="https://img-blog.csdnimg.cn/20200628195946585.png" /></p>
<p>同时在设备日志中可以查看设别上报的数据内容。</p>
<h3 id="342">3.4.2. 设备远程控制</h3>
<p>经过 3.4.1 节的玩法说明，后续都是一样的玩法。</p>
<p>云端下发控制指令的 Topic 如下：</p>
<ul>
<li>下发 Topic： <code>$thing/down/property/{ProductID}/{DeviceName}</code></li>
<li>响应 Topic： <code>$thing/up/property/{ProductID}/{DeviceName}</code></li>
</ul>
<p>下面讲述如何玩。</p>
<p>首先订阅下发 Topic：</p>
<div class="highlight"><pre><span></span><code><span class="n">AT</span><span class="o">+</span><span class="n">TCMQTTSUB</span><span class="o">=</span><span class="s">&quot;$thing/down/property/FWR8PGACUS/ESP8266_Dev_001&quot;</span><span class="p">,</span><span class="mi">0</span>
</code></pre></div>
<p>返回结果如下，订阅成功：</p>
<div class="highlight"><pre><span></span><code>OK
+TCMQTTSUB:OK
</code></pre></div>
<p>然后在云端进入设备在线调试，修改灯的属性，然后下发控制命令：</p>
<p><img alt="" src="https://img-blog.csdnimg.cn/20200628201406423.png" /></p>
<p>在串口助手中可以看到设备收到了云端下发的数据，并以 URC 模式上报：</p>
<div class="highlight"><pre><span></span><code><span class="o">+</span><span class="n">TCMQTTRCVPUB</span><span class="o">:</span><span class="s">&quot;$thing/down/property/FWR8PGACUS/ESP8266_Dev_001&quot;</span><span class="p">,</span><span class="mi">156</span><span class="p">,</span><span class="s">&quot;{&quot;</span><span class="n">method</span><span class="s">&quot;:&quot;</span><span class="n">control</span><span class="s">&quot;,&quot;</span><span class="n">clientToken</span><span class="s">&quot;:&quot;</span><span class="n">clientToken</span><span class="o">-</span><span class="n">e037d04b</span><span class="o">-</span><span class="n">c3a4</span><span class="mi">-4350-8</span><span class="n">d67</span><span class="mi">-5</span><span class="n">c6be19b888a</span><span class="s">&quot;,&quot;</span><span class="n">params</span><span class="s">&quot;:{&quot;</span><span class="n">name</span><span class="s">&quot;:&quot;</span><span class="n">bedroom</span><span class="s">&quot;,&quot;</span><span class="n">power_switch</span><span class="s">&quot;:0,&quot;</span><span class="n">color</span><span class="s">&quot;:0,&quot;</span><span class="n">brightness</span><span class="s">&quot;:30}}&quot;</span>
</code></pre></div>
<p>整理一下 json 内容的格式，可以看到与我们期待下发的数据相对应：</p>
<div class="highlight"><pre><span></span><code><span class="p">{</span>
<span class="w">  </span><span class="nt">&quot;method&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;control&quot;</span><span class="p">,</span>
<span class="w">  </span><span class="nt">&quot;clientToken&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;clientToken-e037d04b-c3a4-4350-8d67-5c6be19b888a&quot;</span><span class="p">,</span>
<span class="w">  </span><span class="nt">&quot;params&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w">    </span><span class="nt">&quot;name&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;bedroom&quot;</span><span class="p">,</span>
<span class="w">    </span><span class="nt">&quot;power_switch&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
<span class="w">    </span><span class="nt">&quot;color&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
<span class="w">    </span><span class="nt">&quot;brightness&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">30</span>
<span class="w">  </span><span class="p">}</span>
<span class="p">}</span>
</code></pre></div>
<p>注意，此时设备还需要手动给平台回复内容给下发响应 topic，内容格式如下：</p>
<div class="highlight"><pre><span></span><code><span class="p">{</span>
<span class="w">  </span><span class="nt">&quot;method&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;control_reply&quot;</span><span class="p">,</span>
<span class="w">  </span><span class="nt">&quot;clientToken&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;clientToken-e037d04b-c3a4-4350-8d67-5c6be19b888a&quot;</span><span class="p">,</span>
<span class="w">  </span><span class="nt">&quot;code&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
<span class="w">  </span><span class="nt">&quot;status&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;success&quot;</span>
<span class="p">}</span>
</code></pre></div>
<p>组合出来发布回应消息的 AT 指令如下：</p>
<div class="highlight"><pre><span></span><code><span class="n">AT</span><span class="o">+</span><span class="n">TCMQTTPUB</span><span class="o">=</span><span class="s">&quot;$thing/up/property/FWR8PGACUS/ESP8266_Dev_001&quot;</span><span class="p">,</span><span class="mi">0</span><span class="p">,</span><span class="s">&quot;{    </span><span class="se">\&quot;</span><span class="s">method</span><span class="se">\&quot;</span><span class="s">:</span><span class="se">\&quot;</span><span class="s">control_reply</span><span class="se">\&quot;</span><span class="s">\,    </span><span class="se">\&quot;</span><span class="s">clientToken</span><span class="se">\&quot;</span><span class="s">:</span><span class="se">\&quot;</span><span class="s">clientToken-e037d04b-c3a4-4350-8d67-5c6be19b888a</span><span class="se">\&quot;</span><span class="s">\,    </span><span class="se">\&quot;</span><span class="s">code</span><span class="se">\&quot;</span><span class="s">:0\,    </span><span class="se">\&quot;</span><span class="s">status</span><span class="se">\&quot;</span><span class="s">:</span><span class="se">\&quot;</span><span class="s">success</span><span class="se">\&quot;</span><span class="s"> }&quot;</span>
</code></pre></div>
<p>返回结果如下：</p>
<div class="highlight"><pre><span></span><code>OK
+TCMQTTPUB:OK
</code></pre></div>
<h3 id="343">3.4.3. 获取设备最新上报信息</h3>
<p>设备从云端接收最新消息使用的 Topic 如下：</p>
<ul>
<li>请求 Topic： <code>$thing/up/property/{ProductID}/{DeviceName}</code></li>
<li>响应 Topic： <code>$thing/down/property/{ProductID}/{DeviceName}</code></li>
</ul>
<p>首先订阅响应 topic（之前已经订阅过，不用重复订阅）。</p>
<p>向请求 Topic 发送数据，请求内容如下：</p>
<div class="highlight"><pre><span></span><code><span class="p">{</span>
<span class="w">  </span><span class="nt">&quot;method&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;get_status&quot;</span><span class="p">,</span>
<span class="w">  </span><span class="nt">&quot;clientToken&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;123&quot;</span><span class="p">,</span>
<span class="w">  </span><span class="nt">&quot;type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;report&quot;</span><span class="p">,</span>
<span class="w">  </span><span class="nt">&quot;showmeta&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span>
<span class="p">}</span>
</code></pre></div>
<p>组合一下发出的 AT 指令如下：</p>
<div class="highlight"><pre><span></span><code><span class="n">AT</span><span class="o">+</span><span class="n">TCMQTTPUB</span><span class="o">=</span><span class="s">&quot;$thing/up/property/FWR8PGACUS/ESP8266_Dev_001&quot;</span><span class="p">,</span><span class="mi">0</span><span class="p">,</span><span class="s">&quot;{    </span><span class="se">\&quot;</span><span class="s">method</span><span class="se">\&quot;</span><span class="s">: </span><span class="se">\&quot;</span><span class="s">get_status</span><span class="se">\&quot;</span><span class="s">\,    </span><span class="se">\&quot;</span><span class="s">clientToken</span><span class="se">\&quot;</span><span class="s">: </span><span class="se">\&quot;</span><span class="s">123</span><span class="se">\&quot;</span><span class="s">\,    </span><span class="se">\&quot;</span><span class="s">type</span><span class="se">\&quot;</span><span class="s"> : </span><span class="se">\&quot;</span><span class="s">report</span><span class="se">\&quot;</span><span class="s">\,     </span><span class="se">\&quot;</span><span class="s">showmeta</span><span class="se">\&quot;</span><span class="s">: 0 }&quot;</span>
</code></pre></div>
<p>返回结果如下：</p>
<div class="highlight"><pre><span></span><code>OK
+TCMQTTPUB:OK
</code></pre></div>
<p>同时设备收到了云端的响应：</p>
<div class="highlight"><pre><span></span><code><span class="o">+</span><span class="n">TCMQTTRCVPUB</span><span class="o">:</span><span class="s">&quot;$thing/down/property/FWR8PGACUS/ESP8266_Dev_001&quot;</span><span class="p">,</span><span class="mi">175</span><span class="p">,</span><span class="s">&quot;{&quot;</span><span class="n">method</span><span class="s">&quot;:&quot;</span><span class="n">get_status_reply</span><span class="s">&quot;,&quot;</span><span class="n">clientToken</span><span class="s">&quot;:&quot;</span><span class="mi">123</span><span class="s">&quot;,&quot;</span><span class="n">code</span><span class="s">&quot;:0,&quot;</span><span class="n">status</span><span class="s">&quot;:&quot;</span><span class="n">success</span><span class="s">&quot;,&quot;</span><span class="n">type</span><span class="s">&quot;:&quot;</span><span class="n">report</span><span class="s">&quot;,&quot;</span><span class="n">data</span><span class="s">&quot;:{&quot;</span><span class="n">reported</span><span class="s">&quot;:{&quot;</span><span class="n">brightness</span><span class="s">&quot;:55,&quot;</span><span class="n">name</span><span class="s">&quot;:&quot;</span><span class="n">bedroom</span><span class="s">&quot;,&quot;</span><span class="n">power_switch</span><span class="s">&quot;:1,&quot;</span><span class="n">color</span><span class="s">&quot;:2}}}&quot;</span>
</code></pre></div>
<p>将其中的 json 内容整理格式如下，和当前设备最后一次上报数据的状态对应：</p>
<div class="highlight"><pre><span></span><code><span class="p">{</span>
<span class="w">    </span><span class="s">&quot;method&quot;</span><span class="o">:</span><span class="s">&quot;get_status_reply&quot;</span><span class="p">,</span>
<span class="w">    </span><span class="s">&quot;clientToken&quot;</span><span class="o">:</span><span class="s">&quot;123&quot;</span><span class="p">,</span>
<span class="w">    </span><span class="s">&quot;code&quot;</span><span class="o">:</span><span class="mi">0</span><span class="p">,</span>
<span class="w">    </span><span class="s">&quot;status&quot;</span><span class="o">:</span><span class="s">&quot;success&quot;</span><span class="p">,</span>
<span class="w">    </span><span class="s">&quot;type&quot;</span><span class="o">:</span><span class="s">&quot;report&quot;</span><span class="p">,</span>
<span class="w">    </span><span class="s">&quot;data&quot;</span><span class="o">:</span>
<span class="w">    </span><span class="p">{</span>
<span class="w">        </span><span class="s">&quot;reported&quot;</span><span class="o">:</span>
<span class="w">        </span><span class="p">{</span>
<span class="w">            </span><span class="s">&quot;brightness&quot;</span><span class="o">:</span><span class="mi">55</span><span class="p">,</span>
<span class="w">            </span><span class="s">&quot;name&quot;</span><span class="o">:</span><span class="s">&quot;bedroom&quot;</span><span class="p">,</span>
<span class="w">            </span><span class="s">&quot;power_switch&quot;</span><span class="o">:</span><span class="mi">1</span><span class="p">,</span>
<span class="w">            </span><span class="s">&quot;color&quot;</span><span class="o">:</span><span class="mi">2</span>
<span class="w">        </span><span class="p">}</span>
<span class="w">    </span><span class="p">}</span>
<span class="p">}</span>
</code></pre></div>
<h3 id="344">3.4.4. 设备事件上报</h3>
<p>设备向云端上报事件的 Topic 如下：</p>
<ul>
<li>上行请求 Topic： <code>$thing/up/event/{ProductID}/{DeviceName}</code></li>
<li>上行响应 Topic： <code>$thing/down/event/{ProductID}/{DeviceName}</code></li>
</ul>
<p>首先订阅上行响应 Topic：</p>
<div class="highlight"><pre><span></span><code><span class="n">AT</span><span class="o">+</span><span class="n">TCMQTTSUB</span><span class="o">=</span><span class="s">&quot;$thing/down/event/FWR8PGACUS/ESP8266_Dev_001&quot;</span><span class="p">,</span><span class="mi">0</span>
</code></pre></div>
<p>返回结果如下：</p>
<div class="highlight"><pre><span></span><code>OK
+TCMQTTSUB:OK
</code></pre></div>
<p>接着向上行请求 Topic 发布消息，事件内容格式如下：</p>
<div class="highlight"><pre><span></span><code><span class="p">{</span>
<span class="w">   </span><span class="s">&quot;method&quot;</span><span class="o">:</span><span class="s">&quot;event_post&quot;</span><span class="p">,</span>
<span class="w">   </span><span class="s">&quot;clientToken&quot;</span><span class="o">:</span><span class="s">&quot;123&quot;</span><span class="p">,</span>
<span class="w">   </span><span class="s">&quot;version&quot;</span><span class="o">:</span><span class="s">&quot;1.0&quot;</span><span class="p">,</span>
<span class="w">   </span><span class="s">&quot;eventId&quot;</span><span class="o">:</span><span class="s">&quot;low_voltage&quot;</span><span class="p">,</span>
<span class="w">   </span><span class="s">&quot;type&quot;</span><span class="o">:</span><span class="s">&quot;alert &quot;</span><span class="p">,</span>
<span class="w">   </span><span class="s">&quot;params&quot;</span><span class="o">:</span>
<span class="w">   </span><span class="p">{</span>
<span class="w">        </span><span class="s">&quot;Voltage&quot;</span><span class="o">:</span><span class="mf">2.8</span>
<span class="w">   </span><span class="p">}</span>
<span class="p">}</span>
</code></pre></div>
<p>其中参数说明如下：</p>
<table>
   <tr>
      <th>参数</th>
      <th>类型</th>
      <th>说明</th>
   </tr>
   <tr>
      <td>method</td>
      <td>String</td>
      <td>event_post 表示事件上报。</td>
   </tr>
   <tr>
      <td>clientToken</td>
      <td>String</td>
      <td>消息 ID，回复的消息将会返回该数据，用于请求响应消息的对比。</td>
   </tr>
   <tr>
      <td>version</td>
      <td>String</td>
      <td>协议版本，默认为 1.0。</td>
   </tr>
   <tr>
      <td>eventId</td>
      <td>String</td>
      <td>事件的 ID，在数据模板事件中定义。</td>
   </tr>
   <tr>
      <td>params</td>
      <td>String</td>
      <td>事件的参数，在数据模板事件中定义。</td>
   </tr>
   <tr>
      <td>timestamp</td>
      <td>Integer</td>
      <td>事件上报的时间，不填写该字段表示就使用事件上报本身的时间。</td>
   </tr>
      <tr>
      <td>type </td>
      <td>String   </td>
      <td>事件类型，info 为信息，alert 为告警，fault 为故障。</td>
   </tr>
</table>

<p>组合出向上行请求发送的 AT 命令如下：</p>
<div class="highlight"><pre><span></span><code><span class="n">AT</span><span class="o">+</span><span class="n">TCMQTTPUB</span><span class="o">=</span><span class="s">&quot;$thing/up/event/FWR8PGACUS/ESP8266_Dev_001&quot;</span><span class="p">,</span><span class="mi">0</span><span class="p">,</span><span class="s">&quot;{    </span><span class="se">\&quot;</span><span class="s">method</span><span class="se">\&quot;</span><span class="s">:</span><span class="se">\&quot;</span><span class="s">event_post</span><span class="se">\&quot;</span><span class="s">\,    </span><span class="se">\&quot;</span><span class="s">clientToken</span><span class="se">\&quot;</span><span class="s">:</span><span class="se">\&quot;</span><span class="s">123</span><span class="se">\&quot;</span><span class="s">\,    </span><span class="se">\&quot;</span><span class="s">version</span><span class="se">\&quot;</span><span class="s">:</span><span class="se">\&quot;</span><span class="s">1.0</span><span class="se">\&quot;</span><span class="s">\,    </span><span class="se">\&quot;</span><span class="s">eventId</span><span class="se">\&quot;</span><span class="s">:</span><span class="se">\&quot;</span><span class="s">low_voltage</span><span class="se">\&quot;</span><span class="s">\,    </span><span class="se">\&quot;</span><span class="s">type</span><span class="se">\&quot;</span><span class="s">:</span><span class="se">\&quot;</span><span class="s">alert </span><span class="se">\&quot;</span><span class="s">\,    </span><span class="se">\&quot;</span><span class="s">params</span><span class="se">\&quot;</span><span class="s">:    {   </span><span class="se">\&quot;</span><span class="s">voltage</span><span class="se">\&quot;</span><span class="s">:2.8    } }&quot;</span>
</code></pre></div>
<p>返回结果如下，上报成功：</p>
<div class="highlight"><pre><span></span><code>OK
+TCMQTTPUB:OK
</code></pre></div>
<p>同时收到平台发给设备的回应：</p>
<div class="highlight"><pre><span></span><code>+TCMQTTRCVPUB:&quot;$thing/down/event/FWR8PGACUS/ESP8266_Dev_001&quot;,75,&quot;{&quot;method&quot;:&quot;event_reply&quot;,&quot;clientToken&quot;:&quot;123&quot;,&quot;code&quot;:0,&quot;status&quot;:&quot;&quot;,&quot;data&quot;:{}}&quot;
</code></pre></div>
<p>其中的 json 数据整理一下如下：</p>
<div class="highlight"><pre><span></span><code><span class="p">{</span>
<span class="w">    </span><span class="s">&quot;method&quot;</span><span class="o">:</span><span class="s">&quot;event_reply&quot;</span><span class="p">,</span>
<span class="w">    </span><span class="s">&quot;clientToken&quot;</span><span class="o">:</span><span class="s">&quot;123&quot;</span><span class="p">,</span>
<span class="w">    </span><span class="s">&quot;code&quot;</span><span class="o">:</span><span class="mi">0</span><span class="p">,</span>
<span class="w">    </span><span class="s">&quot;status&quot;</span><span class="o">:</span><span class="s">&quot;&quot;</span><span class="p">,</span>
<span class="w">    </span><span class="s">&quot;data&quot;</span><span class="o">:</span><span class="p">{}</span>
<span class="p">}</span>
</code></pre></div>
<p>在云端设备事件日志中可以看到：</p>
<p><img alt="" src="https://img-blog.csdnimg.cn/20200628204014562.png" /></p>
<h3 id="345">3.4.5. 设备行为调用</h3>
<p>当应用通过云端向设备发起某个行为调用时，开发平台为设备行为的处理设定了默认的 Topic 如下：</p>
<ul>
<li>应用调用设备行为 Topic： <code>$thing/down/action/{ProductID}/{DeviceName}</code></li>
<li>设备响应行为执行结果 Topic： <code>$thing/up/action/{ProductID}/{DeviceName}</code></li>
</ul>
<p>首先订阅设备应用调用设备行为的 Topic：</p>
<div class="highlight"><pre><span></span><code><span class="n">AT</span><span class="o">+</span><span class="n">TCMQTTSUB</span><span class="o">=</span><span class="s">&quot;$thing/down/action/FWR8PGACUS/ESP8266_Dev_001&quot;</span><span class="p">,</span><span class="mi">0</span>
</code></pre></div>
<p>返回结果如下：</p>
<div class="highlight"><pre><span></span><code>OK
+TCMQTTSUB:OK
</code></pre></div>
<p>智能灯默认数据模板中没有……需要手动创建，新建一个行为功能：</p>
<p><img alt="" src="https://img-blog.csdnimg.cn/20200628131937708.png" /></p>
<p>新建之后在自定义功能这一栏即可看到：</p>
<p><img alt="" src="https://img-blog.csdnimg.cn/20200629100945192.png" /></p>
<p>进入设备在线调试界面，发送行为：</p>
<p><img alt="" src="https://img-blog.csdnimg.cn/20200629101354438.png" /></p>
<p>在串口助手中可以看到模组接收到云端的消息：</p>
<div class="highlight"><pre><span></span><code><span class="o">+</span><span class="n">TCMQTTRCVPUB</span><span class="o">:</span><span class="s">&quot;$thing/down/action/FWR8PGACUS/ESP8266_Dev_001&quot;</span><span class="p">,</span><span class="mi">132</span><span class="p">,</span><span class="s">&quot;{&quot;</span><span class="n">method</span><span class="s">&quot;:&quot;</span><span class="n">action</span><span class="s">&quot;,&quot;</span><span class="n">clientToken</span><span class="s">&quot;:&quot;</span><span class="mi">1</span><span class="n">d603a84c71e4d1da38c2dacce27112e</span><span class="s">&quot;,&quot;</span><span class="n">actionId</span><span class="s">&quot;:&quot;</span><span class="n">blink</span><span class="s">&quot;,&quot;</span><span class="n">timestamp</span><span class="s">&quot;:1593396804,&quot;</span><span class="n">params</span><span class="s">&quot;:{&quot;</span><span class="n">period</span><span class="s">&quot;:5}}&quot;</span>
</code></pre></div>
<p>整理一下 json 格式如下：</p>
<div class="highlight"><pre><span></span><code><span class="p">{</span>
<span class="w">  </span><span class="nt">&quot;method&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;action&quot;</span><span class="p">,</span>
<span class="w">  </span><span class="nt">&quot;clientToken&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;1d603a84c71e4d1da38c2dacce27112e&quot;</span><span class="p">,</span>
<span class="w">  </span><span class="nt">&quot;actionId&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;blink&quot;</span><span class="p">,</span>
<span class="w">  </span><span class="nt">&quot;timestamp&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">1593396804</span><span class="p">,</span>
<span class="w">  </span><span class="nt">&quot;params&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w">    </span><span class="nt">&quot;period&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">5</span>
<span class="w">  </span><span class="p">}</span>
<span class="p">}</span>
</code></pre></div>
<p>在串口助手中向设备响应行为执行结果 Topic 回复响应，响应内容格式如下：</p>
<div class="highlight"><pre><span></span><code><span class="p">{</span>
<span class="w">  </span><span class="nt">&quot;method&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;action_reply&quot;</span><span class="p">,</span>
<span class="w">  </span><span class="nt">&quot;clientToken&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;1d603a84c71e4d1da38c2dacce27112e&quot;</span><span class="p">,</span>
<span class="w">  </span><span class="nt">&quot;code&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
<span class="w">  </span><span class="nt">&quot;status&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;success&quot;</span><span class="p">,</span>
<span class="w">  </span><span class="nt">&quot;response&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w">    </span><span class="nt">&quot;Code&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span>
<span class="w">  </span><span class="p">}</span>
<span class="p">}</span>
</code></pre></div>
<p>组合出发送响应的 AT 指令如下;</p>
<div class="highlight"><pre><span></span><code><span class="n">AT</span><span class="o">+</span><span class="n">TCMQTTPUB</span><span class="o">=</span><span class="s">&quot;$thing/up/action/FWR8PGACUS/ESP8266_Dev_001&quot;</span><span class="p">,</span><span class="mi">0</span><span class="p">,</span><span class="s">&quot;{    </span><span class="se">\&quot;</span><span class="s">method</span><span class="se">\&quot;</span><span class="s">: </span><span class="se">\&quot;</span><span class="s">action_reply</span><span class="se">\&quot;</span><span class="s">\,    </span><span class="se">\&quot;</span><span class="s">clientToken</span><span class="se">\&quot;</span><span class="s">: </span><span class="se">\&quot;</span><span class="s">1d603a84c71e4d1da38c2dacce27112e</span><span class="se">\&quot;</span><span class="s">\,    </span><span class="se">\&quot;</span><span class="s">code</span><span class="se">\&quot;</span><span class="s">: 0\,    </span><span class="se">\&quot;</span><span class="s">status</span><span class="se">\&quot;</span><span class="s">: </span><span class="se">\&quot;</span><span class="s">success</span><span class="se">\&quot;</span><span class="s">\,    </span><span class="se">\&quot;</span><span class="s">response</span><span class="se">\&quot;</span><span class="s">: {    </span><span class="se">\&quot;</span><span class="s">Code</span><span class="se">\&quot;</span><span class="s">:  0    } }&quot;</span>
</code></pre></div>
<p>返回结果为：</p>
<div class="highlight"><pre><span></span><code>OK
+TCMQTTPUB:OK
</code></pre></div>
<p>至此，使用 ESP8266 腾讯云定制固件对接腾讯云 IoT Explorer 平台的测试完成。</p>





                
              </article>
            </div>
          
          
        </div>
        
          <button type="button" class="md-top md-icon" data-md-component="top" hidden>
            <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 20h-2V8l-5.5 5.5-1.42-1.42L12 4.16l7.92 7.92-1.42 1.42L13 8v12Z"/></svg>
            回到页面顶部
          </button>
        
      </main>
      
        <footer class="md-footer">
  
  <div class="md-footer-meta md-typeset">
    <div class="md-footer-meta__inner md-grid">
      <div class="md-copyright">
  
    <div class="md-copyright__highlight">
      Copyright &copy; 2023 TobudOS
    </div>
  
  
    Made with
    <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
      Material for MkDocs
    </a>
  
</div>
      
    </div>
  </div>
</footer>
      
    </div>
    <div class="md-dialog" data-md-component="dialog">
      <div class="md-dialog__inner md-typeset"></div>
    </div>
    
    <script id="__config" type="application/json">{"base": "../../..", "features": ["content.action.edit", "content.action.view", "content.code.annotate", "content.tooltips", "navigation.indexes", "navigation.sections", "navigation.tabs", "navigation.top", "navigation.tracking", "search.highlight", "search.share", "search.suggest", "toc.follow"], "search": "../../../assets/javascripts/workers/search.74e28a9f.min.js", "translations": {"clipboard.copied": "\u5df2\u590d\u5236", "clipboard.copy": "\u590d\u5236", "search.result.more.one": "\u5728\u8be5\u9875\u4e0a\u8fd8\u6709 1 \u4e2a\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c", "search.result.more.other": "\u5728\u8be5\u9875\u4e0a\u8fd8\u6709 # \u4e2a\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c", "search.result.none": "\u6ca1\u6709\u627e\u5230\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c", "search.result.one": "\u627e\u5230 1 \u4e2a\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c", "search.result.other": "# \u4e2a\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c", "search.result.placeholder": "\u952e\u5165\u4ee5\u5f00\u59cb\u641c\u7d22", "search.result.term.missing": "\u7f3a\u5c11", "select.version": "\u9009\u62e9\u5f53\u524d\u7248\u672c"}}</script>
    
    
      <script src="../../../assets/javascripts/bundle.220ee61c.min.js"></script>
      
    
  </body>
</html>